
<!--选择分支钱包-->

<nav class="tab-bar">
	<section class="left-small">
		<a ng-click="cancel()" class="p10">
			<span class="text-close" translate>Close</span>
		</a>
	</section>

	<section class="middle tab-bar-section">
		<h1 class="title ellipsis" >
			<span class="size-17 colorfff" translate> Select subwallet </span>
		</h1>
	</section>
</nav>

<div class="modal-content fix-modals-touch">


	<ul class="no-bullet subwallets">
		<li class="line-b" ng-class="{'selected': !indexCtl.shared_address}">
			<a ng-click="selectSubwallet()" class="db oh">
				<div class="avatar-wallet" style="margin-top:5px">{{(indexCtl.alias || indexCtl.walletName) | limitTo: 1}}</div>
				<div class="ellipsis name-wallet text-bold">{{(indexCtl.alias || indexCtl.walletName)}}</div>
				<div class="size-12">
					<span ng-if="asset == 'base' || asset == indexCtl.BLACKBYTES_ASSET">{{mainWalletBalanceInfo.totalStr}}</span>
					<span ng-if="asset != 'base' && asset != indexCtl.BLACKBYTES_ASSET">{{mainWalletBalanceInfo.total.toLocaleString()}}</span>
				</div>
			</a>
		</li>
		<li class="line-b" ng-repeat="sw in arrSharedWallets" ng-class="{'selected': sw.shared_address == indexCtl.shared_address}" style="margin-left: 20px">
			<a ng-click="selectSubwallet(sw.shared_address)" class="db oh">
				<div class="avatar-wallet" style="margin-top:5px">{{sw.shared_address | limitTo: 1}}</div>
				<div style="display: inline-block; width: calc(100% - 50px)">
					<div class="ellipsis name-wallet text-bold">{{sw.shared_address}}</div>
					<div class="size-12">
						<span ng-if="asset == 'base' || asset == indexCtl.BLACKBYTES_ASSET">{{sw.totalStr}}</span>
						<span ng-if="asset != 'base' && asset != indexCtl.BLACKBYTES_ASSET">{{sw.total.toLocaleString()}}</span>
					</div>
					<div class="size-12 ellipsis"><span translate>with</span> {{sw.shared_address_cosigners}}</div>
					<div class="size-12 ellipsis">
						<span translate>created</span> 
						<time>{{ sw.creation_ts * 1000 | amDateFormat:'MM/DD/YYYY HH:mm a'}}</time>
						<time>({{ sw.creation_ts * 1000 | amTimeAgo}})</time>
					</div>
				</div>
			</a>
		</li>
	</ul>


</div>
